<?php
// +---------------------------------------------------------------------+
// | OneBase    | [ WE CAN DO IT JUST THINK ]                            |
// +---------------------------------------------------------------------+
// | Licensed   | http://www.apache.org/licenses/LICENSE-2.0 )           |
// +---------------------------------------------------------------------+
// | Author     | Bigotry <3162875@qq.com>                               |
// +---------------------------------------------------------------------+
// | Repository | https://gitee.com/Bigotry/OneBase                      |
// +---------------------------------------------------------------------+

namespace app\api\controller;
use app\common\model\EthAccount;
use app\common\model\UserAccount;
use app\common\model\UserPayType;
use think\Db;
/**
 * 用户接口控制器
 */
class UserKing extends ApiBase
{

    /**
     * 赌王申请接口
     */
    public function apply_bet_king()
    {

        return $this->apiReturn($this->logicUserKing->apply_bet_king($this->param));
    }

    /**
     * 赌王详情接口
     */
    public function get_gambler_king_info()
    {

        return $this->apiReturn($this->logicUserKing->get_gambler_king_info($this->param));
    }




    /**
     * 产品类型接口
     */
    public function get_gambler_type_list(){
        return $this->apiReturn($this->logicUserKing->get_gambler_type_list($this->param));
    }

    /**
     * 开启关闭产品类型
     */
    public function update_king_investment_state()
    {

        return $this->apiReturn($this->logicUserKing->update_king_investment_state($this->param));
    }

    /**
     * 一键关闭所有产品类型
     */
    public function update_king_investment_states()
    {

        return $this->apiReturn($this->logicUserKing->update_king_investment_states($this->param));
    }

    /**
     * 我是赌王
     */
    public function my_king()
    {
        return $this->apiReturn($this->logicUserKing->my_king($this->param));
    }

    /**
     *赌王工作台
     */
    public function my_king_workbench()
    {
        return $this->apiReturn($this->logicUserKing->my_king_workbench($this->param));
    }

    /**
     *赌王历史委托
     */
    public function history_king_investment()
    {
        return $this->apiReturn($this->logicUserKing->history_king_investment($this->param));
    }
    /**
     *赌王历史产品
     */
    public function history_investment()
    {
        return $this->apiReturn($this->logicUserKing->history_investment($this->param));
    }


    /**
     *赌王工作台委托产品详情
     */
    public function investment_detail()
    {
        return $this->apiReturn($this->logicUserKing->investment_detail($this->param));
    }


    /**
     *赌王余额转入转出
     */
    public function king_balance_transfer()
    {
        return $this->apiReturn($this->logicUserKing->king_balance_transfer($this->param));
    }


    /**
     * 模拟下注
     */
    public function user_bets()
    {
        return $this->apiReturn($this->logicUserKing->user_bets($this->param));
    }


    /**
     * 模拟下注
     */
    public function king_investment_bonus()
    {
        return $this->apiReturn($this->logicUserKing->king_investment_bonus($this->param));
    }
    /**
     * 开始游戏
     */
    public function king_start_game()
    {
        return $this->apiReturn($this->logicUserKing->king_start_game($this->param));
    }

    /**
     * AY智能
     */
    public function auto_bets_start(){
        return $this->apiReturn($this->logicUserKing->auto_bets_start($this->param));
    }

    public function auto_bets_detail(){
        return $this->apiReturn($this->logicUserKing->auto_bets_detail($this->param));
    }

    public function auto_bets_end(){
        return $this->apiReturn($this->logicUserKing->auto_bets_end($this->param));
    }

    /**
     * 赌王余额流水
     */
    public function king_account_log()
    {
        return $this->apiReturn($this->logicUserKing->king_account_log($this->param));
    }


    /**
     * 赌王可用余额流水
     */
    public function king_balance_log()
    {
        return $this->apiReturn($this->logicUserKing->king_balance_log($this->param));
    }

    /**
     * 赌王可用余额流水
     */
    public function person_game_statistics()
    {
        return $this->apiReturn($this->logicUserKing->person_game_statistics($this->param));
    }


}
